package com.xg.java.resp;

import lombok.Data;

/**
 * @author MPengFei
 * @date
 */
//JSON返回值的实体类
@Data
public class RespBean {
  private Integer status;//状态码
  private String msg;//返回消息
  private Object obj;//返回实体

  public static RespBean error(String msg){
    return new RespBean(500,msg,null);
  }

  public RespBean(Integer status, String msg, Object obj) {
    this.status = status;
    this.msg = msg;
    this.obj = obj;
  }
}
